import {
	request
} from "./request.js"


// //获取微信权限 /api/app/crmconfig/getConfig
// export const getConfig = () => request({
// 	url: "/zk/app/crmconfig/getConfig",
// 	method: 'get'
// })
// //微信返回信息 /api/api/authorization/getInfo
// export const getauthorizationGetInfo = () => request({
// 	url: "/zk/api/authorization/getInfo",
// 	method: 'get'
// })
//检查客户信息是否完整  接口  get 请求  checkUserInfo  参数：id
//微信支付
// 微信支付
export const getWxConfig = (data) => request({
	url: "/zk//pay/wx/order/jsapi",
	method: 'post',
	data
})
export const checkUserInfo = (id) => request({
	url: "/zk/noLogin/checkUserInfo",
	method: 'get',
	params: {
		id
	}
})
//获取用户信息 
export const getUserInfo = (data) => request({
	url: "/zk/noLogin/personalInfo",
	method: 'POST',
	data
})
//修改用户信息 /app/app/account/updatePersonalInfo
export const editUserInfo = (data) => request({
	url: "/zk/noLogin/updatePersonalInfo",
	method: 'POST',
	data
})
//获取文章和任务列表
export const getArticleArr = (params) => {
	return request({
		url: "/zk/noLogin/getArticleInfoList",
		params,
		method: 'GET'
	})
}
//获取已完成文章任务列表
export const getTaskArticleInfoList = (params) => {
	return request({
		url: "/zk/noLogin/getTaskArticleInfoList",
		params,
		method: 'GET'
	})
}
//获取已完成海报任务列表
export const getTaskPosterList = (params) => {
	return request({
		url: "/zk/noLogin/completedTaskPosterList",
		params,
		method: 'GET'
	})
}
//获取文章海报详情 /app/app/article/info
export const getArticleInfo = (data) => request({
	url: "/zk/noLogin/getArticleInfoById",
	method: 'post',
	data
})
//获取分享后文章海报详情 /app/app/article/info
export const getArticleShareInfo = (data) => request({
	url: "/zk/noLogin/getCutArticleInfo",
	method: 'post',
	data
})
//搜索文章 /app/app/article/sysList
export const getArticleSysList = (params) => request({
	url: "/zk/noLogin/sysList",
	method: 'GET',
	params
})
//获取分享文章 app/crmaccessrecords/getShareInfo
export const getShareArticleSysList = (params) => request({
	url: "/zk/noLogin/getMyShareList",
	method: 'GET',
	params
})
//保存文章分享 /zk/noLogin/saveShare 
export const getShareArticleSaveShare = (data) => request({
	url: "/zk/noLogin/saveShare",
	method: 'POST',
	data
})
//分享前进行验证
export const checkingSpreadShare = (data) => request({
	url: "/zk/noLogin/checkingSpread",
	method: 'POST',
	data
})
//保存海报分享  /zk/noLogin/saveSharePoster
export const getSharePosterSaveShare = (data) => request({
	url: "/zk/noLogin/saveSharePoster",
	method: 'POST',
	data
})
//保存视频分享  /zk/noLogin/saveShareVideo
export const getSaveShareVideo = (data) => request({
	url: "/zk/noLogin/saveShareVideo",
	method: 'POST',
	data
})
//保存分享 /zk/noLogin/share
export const getShare = (data) => request({
	url: "/zk/noLogin/share",
	method: 'POST',
	data
})

// 文章详情 /api/noLogin/articleInfo
export const getnoLoginArticleInfo = (params) => request({
	url: "/zk/noLogin/articleInfo",
	method: 'GET',
	params
})
// 获取海报列表 noLogin/sysQtPosterList
export const getPosterList = (params) => request({
	url: "/zk/noLogin/sysQtPosterList",
	method: 'get',
	params
})

//回显海报 noLogin/posterDetail
export const getPosterDetail = (params) => request({
	url: "/zk/noLogin/getArticleInfoById",
	method: 'get',
	params
})
//获取视频列表 /noLogin/sysVideoList
export const getVideoList = (params) => request({
	url: "/zk/noLogin/sysVideoList",
	method: 'get',
	params
})
//个人中心数据 noLogin/getMyIncome?userId=1688
export const getMyIncome = (params) => request({
	url: "/zk/noLogin/getMyIncome",
	method: 'get',
	params
})
//获取客户列表 zk/noLogin/getJxtCustomerList?pageSize=10&page=1&agentId=1
export const getCustomerList = (params) => request({
	url: "/zk/noLogin/getJxtCustomerList",
	method: 'get',
	params
})

// 人脸识别
export const renLianShibie = (data) => request({
	url: "/zk/sys/cert/certification",
	method: 'POST',
	data
})
// 改变认证状态
export const gaibianzhuanTai = (data) => request({
	url: "/zk/sys/cert/certificationResult",
	method: 'POST',
	data
})
//验证银行卡
export const getCardtype = (data) => request({
	url: "/zk/noLogin/verifyDankCardInfo",
	method: 'post',
	data
})
//获取银行卡信息
export const getCardMsg = (params) => request({
	url: "/zk/noLogin/getDankCardInfo",
	method: 'get',
	params
})
// 设置支付密码
export const setPaymentCode = (data) => request({
	url: "/zk/noLogin/setPaymentCode",
	method: 'post',
	data
})
// 解绑银行卡
export const cancelDankCard = (data) => request({
	url: "/zk/noLogin/cancelDankCard",
	method: 'post',
	data
})
// 获取验证码
export const getCode = (data) => request({
	url: "/zk/app/sendCode",
	method: 'post',
	data
})
// 获取认证结果
export const getCertificationResult = (params) => request({
	url: "/zk/sys/cert/getCertificationResult",
	method: 'get',
	params
})
// 判断是否可添加文章海报视频 /noLogin/getCustomerInfo
export const isCustomer = (data) => request({
	url: "/zk/noLogin/getCustomerInfo",
	method: 'post',
	data
})

//添加文章 noLogin/addArticle
export const addArticle = (data) => request({
	url: "/zk/noLogin/addArticle",
	method: 'post',
	data
})
//添加海报 noLogin/addPoster
export const addPoster = (data) => request({
	url: "/zk/noLogin/addPoster",
	method: 'post',
	data
})
//添加视频 noLogin/addVideoSquare
export const addVideo = (data) => request({
	url: "/zk/noLogin/addVideoSquare",
	method: 'post',
	data
})

//发送验证码/app/sendCode
export const sendCode = (data) => request({
	url: "/zk/app/sendCode",
	method: 'post',
	data
})
//提交信息添加表单 noLogin/addForm
export const addForm = (data) => request({
	url: "/zk/noLogin/addForm",
	method: 'post',
	data
})
//获取表单列表  /noLogin/getFormInfo
export const getFormInfo = (params) => request({
	url: "/zk/noLogin/getFormInfo",
	method: 'get',
	params
})
//获取表单详情 noLogin/getFormMessage
export const getFormMessage = (params) => request({
	url: "/zk/noLogin/getFormMessage",
	method: 'get',
	params
})
// 表单信息详情
export const getFormMessageInfo = (params) => request({
	url: "/zk/noLogin/getFormMessageInfo",
	method: 'get',
	params
})
// 注册认证 /noLogin/save 
export const loginSave = (data) => request({
	url: "/zk/noLogin/save",
	method: 'post',
	data
})
//获取推广任务列表 /noLogin/promotionTask /noLogin/getPromotionTask
export const getPromotionTask = (params) => request({
	url: "/zk/noLogin/promotionTask",
	method: 'get',
	params
})
//获取推广任务详情 /noLogin/getPromotionTask
export const getPromotionTaskDetail = (params) => request({
	url: "/zk/noLogin/getPromotionTask",
	method: 'get',
	params
})
//付款扣钱 noLogin/balancePay
export const balancePay = (params) => request({
	url: "/zk/noLogin/balancePay",
	method: 'get',
	params
})
//删除公司账号 noLogin/balancePay
export const deleteAccount = (params) => request({
	url: "/zk/noLogin/deleteAccount",
	method: 'get',
	params
})
//订单列表 
export const orderList = (data) => request({
	url: "/zk/sys/order/list",
	method: 'post',
	data
})

//删除订单 /sys/order/delete
export const deleteOrder = (data) => request({
	url: "/zk/sys/order/delete",
	method: 'post',
	data
})
//财务明细 /noLogin/financial/detail
export const financialDetail = (data) => request({
	url: "/zk/noLogin/financial/detail",
	method: 'post',
	data
})

// 创建招聘信息
export const addRecruit = (data) => request({
	url: "/zk/app/recruit/addRecruit",
	method: 'post',
	data
})

// 添加招聘表单详情
export const addRecruitTalent = (data) => request({
	url: "/zk/app/recruit/addRecruitTalent",
	method: 'post',
	data
})
// 获取招聘信息
export const getRecruit = (params) => request({
	url: "/zk/app/recruit/getRecruit",
	method: 'get',
	params
})
// 分享
export const getShareInviteSaveShare = (data) => request({
	url: "/zk/noLogin/saveShareVideo",
	method: 'POST',
	data
})
//获取客户ID  noLogin/indexPersonalInfo
export const getIndexPersonalInfo = (data) => request({
	url: "/zk/noLogin/indexPersonalInfo",
	method: 'POST',
	data
})
//我的招聘
export const getRecruits = (params) => request({
	url: "/zk/app/recruit/myRecruit",
	method: 'get',
	params
})
//我的招聘详情
export const getmyRecruitInfo = (params) => request({
	url: "/zk/app/recruit/myRecruitInfo",
	method: 'get',
	params
})
//招聘信息回显
export const getCustomerInfo = (params) => request({
	url: "/zk/app/recruit/getCustomerInfo",
	method: 'get',
	params
})
//绑定企业账号 noLogin/bindingInformation
export const bindingInformation = (params) => request({
	url: "/zk/noLogin/bindingInformation",
	method: 'get',
	params
})
//上下架  noLogin/updateStatus
export const updateStatus = (data) => request({
	url: "/zk/noLogin/updateStatus",
	method: 'post',
	data
})
//获取余额图表数据 /noLogin/financial/chart
export const getChart = (data) => request({
	url: "/zk/noLogin/financial/chart",
	method: 'post',
	data
})
//推广数据统计 noLogin/getPromotionStatistics
export const getPromotionStatistics = (params) => request({
	url: "/zk/noLogin/getPromotionStatistics",
	method: 'get',
	params
})
//获取发布任务banner noLogin/getReleasedStatistics?userId=1689
export const getReleasedStatistics = (params) => request({
	url: "/zk/noLogin/getReleasedStatistics",
	method: 'get',
	params
})
//获取任务中心banner noLogin/getTaskStatistics?userId=1689
export const getTaskStatistics = (params) => request({
	url: "/zk/noLogin/getTaskStatistics",
	method: 'get',
	params
})
//验证当前访问的账号地址是否失效接口: noLogin/checkAccessLink
export const checkAccessLink = (params) => request({
	url: "/zk/noLogin/checkAccessLink",
	method: 'get',
	params
})
//激活账号 noLogin/accountRenewal
export const accountRenewal = (data) => request({
	url: "/zk/noLogin/accountRenewal",
	method: 'post',
	data
})
//提现 /sys/order/withdraw
export const withdraw = (data) => request({
	url: "/zk/sys/order/withdraw",
	method: 'post',
	data
})
// 已投简历
export const recruitsubmitResume = (params) => request({
	url: "/zk/app/recruit/submitResume",
	method: 'get',
	params
})
// 我的简历
export const myResume = (params) => request({
	url: "/zk/app/recruit/myResume",
	method: 'get',
	params
})
// 上传简历删除
export const deleteRecruit = (params) => request({
	url: "/zk/app/recruit/deleteRecruit",
	method: 'get',
	params
})
// 简历详情
export const getPersonalResumeInfo = (params) => request({
	url: "/zk/app/recruit/getPersonalResumeInfo",
	method: 'get',
	params
})
// 投递简历
export const commitResume = (params) => request({
	url: "/zk/app/recruit/commitResume",
	method: 'get',
	params
})

//导出简单简历
export const briefpersonalResume = (data) => request({
	url: "/zk/app/pdf/personalResume/brief",
	method: 'post',
	data
})
//导出简单简历
export const detailpersonalResume = (data) => request({
	url: "/zk/app/pdf/personalResume/detail",
	method: 'post',
	data
})
// 发布统计
export const fabutongji = (params) => request({
	url: "/zk/noLogin/getReleasedStatistics",
	method: 'get',
	params
})
// 删除招聘
export const deleteArticlesEtc = (params) => request({
	url: "/zk/noLogin/deleteArticlesEtc",
	method: 'get',
	params
})
// 招聘文案类型
export const getRecruitmentType = (params) => request({
	url: "/zk/app/recruit/type",
	method: 'get',
	params
})
// 招聘文案列表
export const completedTaskRecruitList = (params) => request({
	url: "/zk/app/recruit/completedTaskRecruitList",
	method: 'get',
	params
})
// 修改推广 noLogin/timedTask 
export const timedTask = (data) => request({
	url: "/zk/noLogin/timedTask",
	method: 'post',
	data
})